package com.ruoyi.project.module.payRecords.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.framework.web.domain.BaseEntity;

/**
 * 交易成功订单记录表 movie_pay_records
 * 
 * @author frey
 * @date 2018-11-13
 */
public class PayRecords extends BaseEntity
{
	private static final long serialVersionUID = 1L;
	
	/**  */
	private Integer id;
	/** 商户号，对应appid */
	private String appid;
	/** 实际⽀付⾦额（单位：分） */
	private String fee;
	/** 透传参数，对应于transp */
	private String orderid;
	/** 我司⽣成的订单流⽔号 */
	private String pdorderid;
	/** 外部订单流⽔号（如⽀付宝⽣成的流⽔号） */
	private String chorderid;
	/** ⾦额单位，固定为"fen" */
	private String unit;
	/** 状态，success */
	private String status;
	/** ⽀付时间（格式：yyyy-MM-dd HH:mm:ss） */
	private String time;
	/** String ⽀付⽅式,如"⽀付宝wap" */
	private String paytype;
	/** String md5(appid + orderid + fee + unit + status + paytype + key) */
	private String sign;

	public void setId(Integer id) 
	{
		this.id = id;
	}

	public Integer getId() 
	{
		return id;
	}
	public void setAppid(String appid) 
	{
		this.appid = appid;
	}

	public String getAppid() 
	{
		return appid;
	}
	public void setFee(String fee) 
	{
		this.fee = fee;
	}

	public String getFee() 
	{
		return fee;
	}
	public void setOrderid(String orderid) 
	{
		this.orderid = orderid;
	}

	public String getOrderid() 
	{
		return orderid;
	}
	public void setPdorderid(String pdorderid) 
	{
		this.pdorderid = pdorderid;
	}

	public String getPdorderid() 
	{
		return pdorderid;
	}
	public void setChorderid(String chorderid) 
	{
		this.chorderid = chorderid;
	}

	public String getChorderid() 
	{
		return chorderid;
	}
	public void setUnit(String unit) 
	{
		this.unit = unit;
	}

	public String getUnit() 
	{
		return unit;
	}
	public void setStatus(String status) 
	{
		this.status = status;
	}

	public String getStatus() 
	{
		return status;
	}
	public void setTime(String time) 
	{
		this.time = time;
	}

	public String getTime() 
	{
		return time;
	}
	public void setPaytype(String paytype) 
	{
		this.paytype = paytype;
	}

	public String getPaytype() 
	{
		return paytype;
	}
	public void setSign(String sign) 
	{
		this.sign = sign;
	}

	public String getSign() 
	{
		return sign;
	}

    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("appid", getAppid())
            .append("fee", getFee())
            .append("orderid", getOrderid())
            .append("pdorderid", getPdorderid())
            .append("chorderid", getChorderid())
            .append("unit", getUnit())
            .append("status", getStatus())
            .append("time", getTime())
            .append("paytype", getPaytype())
            .append("sign", getSign())
            .toString();
    }
}
